package com.example.demoyyy.ShiTiYYY;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class AddressBook implements Serializable {
    private static final long serialVersionUID = 1L;
    private  Long id;
    private  Long userId;
    private String consignee;
    private  String  sex;

    private  String  provinceName;
    private  String  cityName;
    private  String  districtName;
    private  String  phone;
    private  String detail;
    private  String label;
    private  Integer isDefault;
    @TableField(fill= FieldFill.INSERT) // 自动填充策略,只有第一次插入的时候,填充
    private LocalDateTime createTime;
    @TableField(fill=FieldFill.INSERT_UPDATE) // 自动填充策略,第一次插入或者有修改的时候就填充
    private LocalDateTime updateTime;
    @TableField(fill=FieldFill.INSERT)
    private Long createUser;
    @TableField(fill=FieldFill.INSERT_UPDATE)
    private Long updateUser;
//    private Integer isDelete;
}
